package com.ugoodtech.mdcc.core.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import javax.persistence.Table;

/* Copyright (C) Ugoodtech, Inc - All Rights Reserved.
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 * Proprietary and confidential.
 * Written by Stone Shaw.
 */
@ApiModel("问卷")
@Entity
@Table(name = "question_papers")
public class QuestionPaper extends BaseEntity {
    @ApiModelProperty("名称")
    private String name;
    @ApiModelProperty("版本")
    private String version;
    @ApiModelProperty("原因")
    private String reason;
    @ApiModelProperty("状态")
    private Status status;
    @ApiModelProperty("问卷分类")
    private QuestionPaperCategory category;

    private String paperNum;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public QuestionPaperCategory getCategory() {
        return category;
    }

    public void setCategory(QuestionPaperCategory category) {
        this.category = category;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public enum QuestionPaperCategory {
        colorReport, leanPaintReport, serviceReport, saleServiceReport, satisfactionReport, complaintReport, complaintReportSolution
    }

    public enum Status {
        draft, using, stop
    }
}
